#clean previous build folder
rm -rf build_arkts
# obtain code
repo sync

# install dependencies
sudo ./scripts/install-deps-ubuntu -i=dev -i=test

# install 3rd party
./scripts/install-third-party --force-clone

# create new build folder
mkdir build_arkts && cd build_arkts || exit

cmake .. -GNinja -DCMAKE_BUILD_TYPE=Debug

ninja -k1 ark ark_aot es2panda ark_disasm verifier

# to run test target, using ninja
#ninja -v etsstdlib-tests-run

export DEV_HOME=~/gitee/openharmony-sig/arkts
cd $DEV_HOME
$DEV_HOME/tests/tests-u-runner/runner.sh . --ets-func-tests --test-root=$DEV_HOME/plugins/ets --build-dir $DEV_HOME/build_arkts/ --processes=all --verbose=SHORT --force-generate